import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import router from './router/index'
import store from './store/index'
//import './api/mock'
import VueVideoPlayer from 'vue-video-player'
import { videoPlayer } from 'vue-video-player'
// require videojs style
import Vant from 'vant'
import 'vant/lib/index.css'

import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
import VueCookies from 'vue-cookies';

Vue.use(VueCookies)
Vue.use(Vant)
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(videoPlayer)
Vue.use(VueVideoPlayer)
new Vue({
  router,
  store,
  render: h => h(App),
  created() {
    store.commit('addMenu', router)
  }
}).$mount('#app')
